// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import './common/css/base.less'
import store from './store'

import 'amfe-flexible'

import { 
  Button, 
  Icon, 
  Tab, 
  Tabs, 
  Toast,  
  TreeSelect, 
  Stepper,
  GoodsActionButton,
  GoodsActionIcon,
  GoodsAction,
  Checkbox,
  CheckboxGroup,
  SubmitBar,
  Dialog,
  AddressList,
  AddressEdit,
  ContactCard,
  Card,
  Field,
  Form
} from 'vant';

Vue
  .use(AddressList)
  .use(Form)
  .use(Field)  
  .use(Card)
  .use(AddressEdit)
  .use(ContactCard)
  .use(Button)
  .use(Dialog)
  .use(SubmitBar)
  .use(CheckboxGroup)
  .use(Checkbox)
  .use(Icon)
  .use(Tab)
  .use(Tabs)
  .use(Toast)
  .use(TreeSelect)
  .use(Stepper)
  .use(GoodsActionButton)
  .use(GoodsActionIcon)
  .use(GoodsAction);


Vue.config.productionTip = false


new Vue({
  el: '#app',
  router,
  components: { App },
  store,
  template: '<App/>',
  beforeCreate(){
    Vue.prototype.$bus = this;
  },
})
